package cn.ulc.socket.weapp.controller;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import cn.ulc.common.util.Result;
import cn.ulc.socket.weapp.service.StaffServ;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/wechat/staff")
public class StaffController {
    private static final Log log = LogFactory.get();

    @Autowired
    StaffServ staffServ;

    @PutMapping("/bindStaff/{staffId}")
    public Result bindStaff(@PathVariable("staffId") Long staffId){
        return Result.success(staffServ.bindStaff(staffId));
    }
}
